<%@ page import="java.sql.*,pc.util.Utils"%>
<%
    Users user = Trader.getUser(request.getParameter("uid"));
	wstrader.task.trade.physical.Contract task = user.trade.physical.contract;

	if (!user.Authenticated()) {
		response.sendRedirect("logon.jsp");
		return;
	}
	((Tasks)task.getOwner()).clearFocus();
	task.setFocus(true);	
	Trader.window_width = "90%";
	long focused_id =0;
	ResultSet rs;
%>

<%@include file="../header.jsp"%>

<style type="text/css">
<!--
.style1 {
	font-family: Arial;
	font-size: 12px;
}
.style2 {font-size: 12px}
.style3 {font-weight: bold}
.style4 {font-family: Arial; font-size: 12px; font-weight: bold; }
-->
</style>

<form action="" method="post" name="formMain" id="formMain">
  <table width="100%"  border="0.5" cellspacing="0" cellpadding="0">
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td colspan="5"><table width="100%"  border="1" cellspacing="0" cellpadding="0">
        <tr>
          <td width="14%">&nbsp;</td>
          <td width="86%"><table width="100%"  border="0.5" cellspacing="0" cellpadding="0">
            <tr>
              <td height="19" align="center" valign="middle" class="style4">&nbsp;</td>
              <td align="center" valign="middle" class="style4">&nbsp;</td>
              <td align="center" valign="middle" class="style4">&nbsp;</td>
              <td align="center" valign="middle" class="style4">&nbsp;</td>
              <td align="center" valign="middle" class="style4">&nbsp;</td>
              <td align="center" valign="middle" class="style4">&nbsp;</td>
            </tr>
            <tr>
              <td height="19" colspan="6" align="center" valign="middle" class="style4"><table width="100%"  border="0.5" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="22%" align="right" class="style1"><input name="contract_id" type="hidden" id="contract_id" value="0">
                    Contract Ref </td>
                  <td width="1%">&nbsp;</td>
                  <td width="20%">&nbsp;</td>
                  <td width="1%">&nbsp;</td>
                  <td width="27%" align="right" class="style1">Contract Tons </td>
                  <td width="1%">&nbsp;</td>
                  <td width="28%">&nbsp;</td>
                </tr>
                <tr>
                  <td align="right" class="style1">Seller Name </td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td align="right" class="style1">Received Tons </td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td align="right" class="style1">Quality</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td align="right" class="style1">Pending Tons </td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td align="right" class="style1">Grade</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td align="right" class="style1">&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td align="right" class="style1">Contract Price Type </td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td align="right" class="style1">Contract Price - Value </td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td align="right" class="style1">Contract Price Per Ton </td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td align="right" class="style1">Paid Price - Value </td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
              </table></td>
              </tr>
            <tr>
              <td height="19" align="center" valign="middle" class="style4">&nbsp;</td>
              <td align="center" valign="middle" class="style4">&nbsp;</td>
              <td align="center" valign="middle" class="style4">&nbsp;</td>
              <td align="center" valign="middle" class="style4">&nbsp;</td>
              <td align="center" valign="middle" class="style4">&nbsp;</td>
              <td align="center" valign="middle" class="style4">&nbsp;</td>
            </tr>
            <tr bgcolor="#DDDDDD">
              <td width="16%" height="33" align="center" valign="middle" class="style4">Warehouse Receipt No. </td>
              <td width="16%" align="center" valign="middle" class="style4">Quality Ref. No. </td>
              <td width="17%" align="center" valign="middle" class="style4">Delivered Ton </td>
              <td width="17%" align="center" valign="middle" class="style4">Discount / Premium </td>
              <td width="17%" align="center" valign="middle" class="style4">Total Discount </td>
              <td width="17%" align="center" valign="middle" class="style4">Total Amount </td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
          </table></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  </table>
</form>
<%@include file="../footer.jsp"%>
